home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 March / PCWorld_2007-03_cd.bin / komunikace / acehtml / acehtmlfreeware.exe / scriptdef / Show Date 2.sd < prev    next >
INI File  |  2006-09-13  |  963b  |  53 lines

  1. [SUBJECT]
  2. Description=Display the current date (2nd variant)
  3. ImageIndex=-1
  4. Folder=Tools
  5.  
  6.  
  7. [HEAD_TEXT]
  8. ;<script language="JavaScript">
  9. ;<!-- begin script
  10. ;var dd2, delay2, TheYear;
  11. ;function debuteDate2() {
  12. ;  var adate, date, amonth;
  13. ;  delay2 = `delay`;
  14. ;
  15. ;  adate = new Date();
  16. ;  date = adate.getDate();
  17. ;  amonth = adate.getMonth()+1;
  18. ;
  19. ;  if (adate.getYear() > 1999)
  20. ;    TheYear = adate.getYear();
  21. ;  else 
  22. ;    TheYear = (1900 + adate.getYear());
  23. ;
  24. ;  if (amonth < 10)
  25. ;    date += "/0" + amonth + "/" + TheYear;
  26. ;  else date += "/" + amonth + "/" + TheYear;
  27. ;  date = "  " + date;
  28. ;  document.Temps22.date.value = date;
  29. ;
  30. ;  dd2 = setTimeout("debuteDate2(delay2)",delay2);
  31. ;}
  32. ;//  end script -->
  33. ;</script>
  34. ;
  35.  
  36.  
  37. [BODY_TAG]
  38. ;onLoad="debuteDate2()" onUnload="clearTimeout(dd2)"
  39.  
  40.  
  41. [BODY_TEXT]
  42. ;<form name="Temps22">
  43. ;<input type="text" name="date" size="18"><br>
  44. ;</form>
  45. ;
  46.  
  47.  
  48.  
  49. [`delay`]
  50. Kind=N
  51. Value=10000
  52.  
  53.